<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Referral
 *
 * @property int $id 标识
 * @property int $user_id 关联病人id
 * @property int $d_user_id 发起转诊医生id
 * @property int $dr_user_id 接收转诊医生id
 * @property float $amount 转诊费用
 * @property string $patient_desc 患者描述
 * @property int $status 转诊状态：0发起,1接收，2不接收
 * @property string $reason 不接收时填写原因
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereAmount($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereDUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereDrUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral wherePatientDesc($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereReason($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereStatus($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereUserId($value)
 * @mixin \Eloquent
 * @property string $order_num 订单编号
 * @method static \Illuminate\Database\Query\Builder|\App\Referral whereOrderNum($value)
 */
class Referral extends Model
{
    protected $table = 'referral';
    use SoftDeletes;
}